function Head(stat, headers) {

	var map = new Array();
	
	for(var id in headers)
		map[headers[id].getName()] = headers[id];
				
	this.getHeader = function(nam) {
		return map[nam];
	}
	
	this.getAllHeaders = function() {
		return headers;
	}

	this.getStatusLine = function() {
		return stat;
	}
	
}
